//
//  PayTitleView.m
//  PlayCatchGame
//
//  Created by 流言 on 2018/2/7.
//  Copyright © 2018年 清正. All rights reserved.
//

#import "PayTitleView.h"

@interface PayTitleView()

@property (nonatomic, strong)ButtonBlock buttonBlock;

@end

@implementation PayTitleView

- (IBAction)buttonClick:(UIButton *)sender {
    if (self.buttonBlock) {
        self.buttonBlock(sender);
    }
}

- (void)didButtonBlock:(ButtonBlock)newBlock {
    self.buttonBlock =newBlock; 
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
